<?php

class Core_Component_System_Model_Theme_Skin extends Soul_Model_Entity_Base {
	
	protected $tableName = '{t}system_theme';

    protected function initializeProperties() {
        $this->createProperty('id', 'integer', TRUE, TRUE);
        $this->createProperty('code', 'string')
                ->setRequired(TRUE)
                ->setLength(50)
                ->addRule(new Soul_Validation_Rule_Character())
                ->setLabel('system.label.code');
        $this->createProperty('name', 'string')
                ->setRequired(TRUE)
                ->setLength(50)
                ->addRule(new Soul_Validation_Rule_Character())
                ->setLabel('system.label.name');
        $this->createProperty('is_default', 'boolean')
                ->setDefaultValue(0)
                ->setInputType(NULL)
                ->setLabel('system.label.default');
    }
}